package com.junpuxin.dto;

import com.junpuxin.constant.MC;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import lombok.*;

/**
 * @author junpuxin
 */
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Schema(description = "按条件分页搜索班级DTO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ClubPageDTO extends PageDTO {

    @Schema(description = "班级名称")
    @Pattern(regexp = MC.Regex.TITLE_RE, message = MC.Regex.TITLE_RE_MSG)
    private String title;

    @Schema(description = "班级类型标签")
    private String tag;

    @Schema(description = "方向表外键")
    private Long fkDirectionId;

}
